import request from '@/utils/request'

// 查询供应商预付款单列表
export function listSettlePreSheet(query) {
  return request({
    url: '/system/SettlePreSheet/list',
    method: 'get',
    params: query
  })
}

// 查询供应商预付款单详细
export function getSettlePreSheet(id) {
  return request({
    url: '/system/SettlePreSheet/' + id,
    method: 'get'
  })
}

// 新增供应商预付款单
export function addSettlePreSheet(data) {
  return request({
    url: '/system/SettlePreSheet',
    method: 'post',
    data: data
  })
}

// 修改供应商预付款单
export function updateSettlePreSheet(data) {
  return request({
    url: '/system/SettlePreSheet',
    method: 'put',
    data: data
  })
}

// 删除供应商预付款单
export function delSettlePreSheet(id) {
  return request({
    url: '/system/SettlePreSheet/' + id,
    method: 'delete'
  })
}
